import axios from "~/axios";

export function getMember(page) {
  return axios.get("/member?page=" + page);
}

export function createMember(data) {
  return axios.post("/member", data);
}

export function updateMember(id, data) {
  return axios.put(`/member/${id}`, data);
}

export function deleteMember(id) {
  return axios.delete("/member/" + id);
}

export function getidMember(id) {
  return axios.get(`/member/${id}`);
}
